package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@TableName("employees")
@Builder
public class Employee {
    private Integer id;
    private Date deletedAt;
    private String name;
    private String number;
    private String phone;
    private Integer sex;
    private Date entryTime;

    private Integer departmentId;
    @TableField(exist = false)
    private Department department;

    private Integer fatherId;
    @TableField(exist = false)
    private Common father;

    private Integer cardTypeId;
    @TableField(exist = false)
    private Common cardType;

    private Integer nurseId;
    @TableField(exist = false)
    private NursingHome nurse;

    private Integer userStatusId;
    @TableField(exist = false)
    private Common userStatus;

    private Integer positionId;
    @TableField(exist = false)
    private Common position;

    private Integer educationId;
    @TableField(exist = false)
    private Common education;

    @Tolerate
    Employee() {
    }
}
